<template>
  <div class="container">
    <div class="header">
      <p
        style="
          font-weight: bold;
          font-size: 24px;
          color: #222222;
          margin-right: 255px;
        "
      >
        艺术系列
      </p>
      <div class="search">
        <img src="../../assets/images/home/search.png" alt="" />
        <input
          type="text"
          v-model="searchValue"
          :placeholder="t('请输入搜索内容')"
        />
        <button class="btnsearch" @click="serachGoods()">
          {{ t("搜索") }}
        </button>
      </div>
    </div>
    <div class="content">
      <div class="item">
        <div class="imgbox">
          <img src="" alt="" />
        </div>
        <div class="name">iPhone 15 Pro Max</div>
        <div class="type">MagSafe 兼容极致强韧防摔手机壳Feed Me!</div>
        <div class="price">￥502</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: [],
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  updated() {},
  destroyed() {},
  activated() {},
  methods: {
    t(t) {
      return this.$t(`首页.${t}`);
    },
  },
};
</script>
<style lang="less" scoped>
.container {
  width: 1700px;
  margin: 57px 110px;
  .header {
    display: flex;
    align-items: center;
    .search {
      width: 1000px;
      height: 60px;
      background: #f9f9f9;
      border: 1px solid #f1f1f1;
      box-shadow: 0px 0px 10px 0px rgba(227, 227, 227, 0.41);
      border-radius: 30px;
      margin: 30px 0px;
      overflow: hidden;
      display: flex;
      align-items: center;

      img {
        width: 25px;
        height: 25px;
        margin-left: 10px;
      }

      input {
        width: 82%;
        height: 100%;
        outline: none;
        border: 0;
        background-color: transparent;
        text-indent: 2em;
        font-size: 20px;
        font-weight: 400;
        color: #999999;
      }

      .btnsearch {
        width: 150px;
        height: 54px;
        background: #ff5757;
        border-radius: 30px;
        font-size: 20px;
        font-weight: 400;
        color: #ffffff;
        text-align: center;
        line-height: 54px;
        border: 0;
        outline: 0;
      }
    }
  }
  .content {
    width: 1700px;
    display: flex;
    flex-wrap: wrap;
    .item {
      box-sizing: border-box;
      .imgbox {
        width: 300px;
        height: 458px;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .name {
        width: 244px;
        text-align: center;
        font-weight: 500;
        font-size: 16px;
        color: #222222;
      }
      .type {
        width: 250px;
        height: 18px;
        font-weight: 500;
        font-size: 16px;
        color: #222222;

        text-align: center;
      }
      .price {
        font-weight: 400;
        font-size: 16px;
        color: #222222;
      }
    }
  }
}
</style>
